Originally transferred from http://hi.baidu.com/shyoung/blog/item/b0ccff03fd462481d43f7c5a.html
The complete DNS System of the DNS component consists of the DNS server, region, Parser (DNS client), and resource records, and you need to correctly
Dns.c
Copy Code code as follows:
/*
* DNS Query Program on Linux
*
* author:ismdeep@live.com
*
* */
Header Files
#include #include #include #include #include #include #include
List of DNS Servers registered on the systemChar
Each IP address can have a host name that consists of one or more strings separated by a decimal point. With the hostname, do not memorize each IP device IP address, just remember the relative intuitive meaningful host name on the line. This is the
DNS is an application-level protocol, and DNS provides a mechanism for translating a human-readable hostname or domain name into a computer or network-readable digital address, making it possible for the wide application of the interconnection
ConceptDefault dns lookup sequence for linux clients:
Local DNS Cache → local hosts file → preferred DNS server (recursive)
Linux DNS Server Query sequence:The DNS cache of the preferred server → the domain in which the preferred server is
Java internal DNS query implementation and parameter settings1. Java internal DNS query
Java uses its own internal domain name implementation mechanism for domain name query, and finally submits it to InetAddress for DNS resolution.
Source code
What is the nature of DNS? Domain Name System = DNS (domain name systems) is actually a database, is a distributed database for TCP/IP programs, and is also an important network protocol. DNS stores information about IP addresses and corresponding
DNS is one of the core Internet protocols. Whether it's surfing the web or programming, you need to know a little bit about it.This article describes in detail The principle of DNS and how to use the tool software to observe its operation. My goal
read the basic requirements of this article:1. The use of the cmd command has a certain basis2. The basic principles of DNS and common concepts have a certain understanding, such as host, alias, forward lookup zone, reverse lookup zone, and so on.3.
Article keywords: DNS Linux RedHat
installation of DNS
Profile: File name and source/etc/named.conf,/var/named/named.local,/var/named/named.ca (caching-nameserver-7.2-7.noarch.rpm)
/etc/resolv.conf System self-belt
Installation:
B, start the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.